Skip to content

Conversation

lovelydinosaur
Copy link
Collaborator

Closes #2218.

@xordoquy
Copy link
Contributor

Given the inconsistence we are probably missing a few from __future__ import unicode_literals statements in the code.

self.assertEqual(response.data['user'], 'example')
self.client.logout()
response = self.client.get('/view/')
self.assertEqual(response.data['user'], b'')
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

example is a text type (previous assert) while b'' is binary

@lovelydinosaur
Copy link
Collaborator Author

Yeah, we could clean that up at some point & ensure that every module starts with...

# encoding: utf-8
from __future__ import unicode_literals

lovelydinosaur added a commit that referenced this pull request Dec 12, 2014
…els-force-authenticate

`Client.logout()` also clears any `force_authenticate`
@lovelydinosaur lovelydinosaur merged commit fd473aa into master Dec 12, 2014
@lovelydinosaur lovelydinosaur deleted the testclient-logout-also-cancels-force-authenticate branch December 12, 2014 13:33
@lovelydinosaur lovelydinosaur changed the title Client.logout() also clears any force_authenticate Client.logout() also cancels any existing force_authenticate. Dec 12, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Client.logout() also cancels any existing force_authenticate.
2 participants